package com.huatai.user.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @program: ht-system
 * @description: user视图类
 * @author: songxiude
 * @create: 2023-02-06 10:50
 **/
@Data
@ApiModel(value = "UserInfo实体", description = "用户基本信息")
public class UserInfoVo implements Serializable {
	@ApiModelProperty("用户id")
	private Long id;

	@ApiModelProperty("用户编号")
	private String code;

	@ApiModelProperty(value = "用户账号")
	private String account;

	@ApiModelProperty("用户昵称")
	private String name;

	@ApiModelProperty("用户真实名称")
	private String realName;

	@ApiModelProperty("用户头像")
	private String avatar;

	@ApiModelProperty("邮箱")
	private String email;

	@ApiModelProperty("电话号码")
	private String phone;

	@ApiModelProperty("用户生日")
	@JsonFormat(pattern = "yyyy-MM-dd", timezone="GMT+8")
	private LocalDate birthday;

	@ApiModelProperty("性别0未知1男2女")
	private Integer sex;

	@ApiModelProperty("是否管理员0否1是")
	private Integer isAdmin;

	@ApiModelProperty("部门id")
	private Long deptId;

	@ApiModelProperty("岗位id")
	private Long postId;

	@ApiModelProperty("部门名称")
	private String deptname;

	@ApiModelProperty("岗位名称")
	private String postname;

	@ApiModelProperty("审核状态0为审核1审核通过2审核拒绝")
	private Integer checkState;

	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime createTime;

	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
	private LocalDateTime updateTime;

	@ApiModelProperty("状态0整除1禁用")
	private Integer status;

}
